{% extends 'adminbase.html' %}
{% block content_admin %}
	
	Showing Category :

	{% if category %}
		{{ category.title }} 
		[<a href="/admin/admin_updatecategory/{{category.pk}}/">Edit</a>]
		[<a href="/admin/admin_deletecategory/{{category.pk}}/">Delete</a>]
		
		<p>Title: {{ category.title }}</p>
		<p>Order: {{ category.order }}</p>
		
		{% if page_list %}
			<p>Pages onwed:</p>
		    {% for page in page_list %}
	 	        <li><a href="/admin/admin_detailpage/{{ page.pk }}/">{{ page.title }}</a></li>
		    {% endfor %}
		{% else %}
	    	<p>No pages owned found !</p>
		{% endif %}
	{% else %}
	    <p>No category found !</p>
	{% endif %}

{% endblock %}

